// Common/Lang.h

#ifndef __COMMON_LANG_H
#define __COMMON_LANG_H

#include <vector>
namespace Common
{
namespace Lang
{


struct CLangPair
{
  UINT32 Value;
  CString String;
  CLangPair() {}
  CLangPair(const CLangPair& obj) :
	  Value(obj.Value), 
	  String(obj.String)
  {
  }
  CLangPair& operator=(const CLangPair& obj)
  {
	  Value = obj.Value;
	  String = obj.String;
	  return *this;
  }
};

class CLang
{
  std::vector<CLangPair> _langPairs;
public:
  bool Open(LPCWSTR fileName);
  void Clear() { _langPairs.clear(); }
  int FindItem(UINT32 value) const;
  bool GetMessage(UINT32 value, CString &message) const;
};

}
}
#endif


